home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smreplacedia.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-10  |  1.2 KB  |  58 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7.  
  8. #ifndef SMREPLACEDIA_H
  9. #define SMREPLACEDIA_H
  10.  
  11. #include "ui_smreplacedia.h"
  12. #include "styleitem.h"
  13.  
  14. class QLabel;
  15. class QComboBox;
  16.  
  17.  
  18. /*! \brief Style Manager: replace one style with another one.
  19. A "current--new row" widget.
  20. */
  21. class SMRowWidget : public QWidget
  22. {
  23.     Q_OBJECT
  24. public:
  25.     SMRowWidget(const QString &toBeDeleted, QStringList replaceOptions, QWidget *parent);
  26.     ~SMRowWidget();
  27.  
  28.     QString toBeDeleted();
  29.     QString replaceWith();
  30.  
  31. private:
  32.     QHBoxLayout *layout;
  33.     QLabel      *deleteLabel;
  34.     QComboBox   *optionsCombo;
  35. };
  36.  
  37.  
  38. /*! \brief Style Manager replace dialog
  39. */
  40. class SMReplaceDia : public QDialog, Ui::SMReplaceDia
  41. {
  42.     Q_OBJECT
  43. public:
  44.     SMReplaceDia(const QStringList &toBeDeleted, const QStringList &replaceOptions, QWidget *parent);
  45.     ~SMReplaceDia();
  46.  
  47.     QList<RemoveItem> items();
  48.  
  49. private:
  50.     QVBoxLayout *layout;
  51.     QHBoxLayout *headerLayout;
  52.     QLabel      *deleteHeader;
  53.     QLabel      *optionsHeader;
  54.     QList<SMRowWidget*>  rowWidgets;
  55. };
  56.  
  57. #endif
  58.